<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('具体周报列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/stuweeknews";

        var newstatus = [[${@dict.getType('sys_weeknew')}]];
        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "具体周报",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id',
                    title: '周报id',
                    visible: false
                },
                {
                    field: 'task',
                    title: '实践环节'
                },
                {
                    field: 'newNum',
                    title: '周报次数'
                },
                {
                    field: 'status',
                    title: '提交状态',
                    formatter: function(value, row, index) {
                        return $.table.selectDictLabel(newstatus , value);
                    }
                },
                {
                    field: 'makeTima',
                    title: '提交时间'
                },
                {
                    field: 'deadTime',
                    title: '截止时间'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs " href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>
